<template>
  <ys-card :title="config.attribute.name">
    <ys-normal-chart ref="barChart" :height="config.hPx" ></ys-normal-chart>
  </ys-card>
</template>

<script>
export default {
  // eslint-disable-next-line vue/multi-word-component-names
  name: 'card',
  props: {
    config: {
      type: Object,
      default: () => {
        return {
          component: 'card',
          attribute: {
            name: '只是一个标题'
          }
        }
      }
    },
  },
  methods: {
    resize() {
      this.$refs.barChart.setDefault()
    }
  },
}
</script>

<style scoped>

</style>
